<!DOCTYPE html>
<html>
    <head>
        <title>
            Centy Theme
        </title>

        <!-- SETTINGS -->

        <meta charset="utf-8" />
        <meta
            name="viewport"
            content="width=device-width, initial-scale=1"
        />
        <meta
            name="format-detection"
            content="telephone=no"
        />

		 <!-- STYLES 
		<link rel="stylesheet" href="<?php echo SITE_URL;?>/media/css/bootstrap.min.css" />-->
		<link href="<?php echo SITE_URL;?>/media/css/reset.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/grid.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/awesome.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/animations.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/revolution.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/jquery.bxslider.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/jquery.fancybox.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/switcher.css" rel="stylesheet" />
		<link href="<?php echo SITE_URL;?>/media/css/main.css" rel="stylesheet" />
		
		<!-- SCRIPTS -->
		
		<script src="<?php echo SITE_URL;?>/media/js/respond.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/retina.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/jquery.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/jquery-ui.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/jquery.mobile.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/browser.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/scale.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/quicksand.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/plugins.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/revolution.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/jquery.bxslider.min.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/jquery.fancybox.pack.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/switcher.js"></script>
		<script src="<?php echo SITE_URL;?>/media/js/main.js"></script>
    </head>
    <body
        data-page="home"
        data-boxed="false"
    >

        <!-- LAYOUT -->

        <div id="layout">

            <!-- HEADER -->

            <div id="header">
                <div class="container">
                    <div class="wrapper">

                        <!-- MAIN MENU -->

                        <ul
                            id="menu"
                            class="full"
                        >
                            <li class="submenu">
                                <a>
                                    Menu
                                </a>
                                <ul>

                                    <!-- ITEM -->

                                    <li <?php if(($_GET['action'] =='lists' )) echo 'class="current-menu-item"'; ?>> 
                                        <a href="index.php?controller=pagehome&action=lists">
                                            Home
                                        </a>
                                    </li>

                                    <!-- ITEM -->

                                    <li class="submenu <?php if(($_GET['action'] == 'getAllProductForACat') || ($_GET['action'] == 'getAProduct')) echo 'current-menu-item'; ?>">
                                        <a>
                                            Product Cat
                                        </a>

                                        <!-- SUBMENU -->

                                        <ul>
                                            <?php 
												while($row=mysqli_fetch_array($listCategoriesPro))
											{
												?>
												<li>
													<a href="index.php?controller=pagehome&action=getAllProductForACat&name=<?php echo $row['nameCat'] ?>">
														<?php echo $row['nameCat'] ?>
													</a>
												</li>
												
												<?php
											} ?>
                                        </ul>
                                    </li>

                                    <!-- ITEM -->

                                    <li class="submenu <?php if(($_GET['action'] == 'getAllReportInACat') || ($_GET['action'] == 'getAArtcle')) echo 'current-menu-item'; ?>">
                                        <a>
                                            Report Cat
                                        </a>

                                        <!-- SUBMENU -->

                                        <ul>
                                            <?php 
												while($row2=mysqli_fetch_array($listCategories))
											{
												?>
												<li>
													<a href="index.php?controller=pagehome&action=getAllReportInACat&name=<?php echo $row2['nameCat'] ?>">
														<?php echo $row2['nameCat'] ?>
													</a>
												</li>
												
												<?php
											} ?>
                                        </ul>
                                    </li>

                                    <!-- ITEM -->

                                    <li>
                                        <a href="about.html">
                                            About
                                        </a>
                                    </li>

                                    <!-- ITEM -->

                                    <li>
                                        <a href="contact.html">
                                            Contact
                                        </a>
                                    </li>
                                </ul>
                            </li>
                        </ul>

                        <!-- LOGO -->

                        <div id="logo">
                            <a href="index.html">
                                <img
                                    src="<?php echo SITE_URL;?>/media/img/photos/logo.png"
                                    alt=""
                                    width="43"
                                    height="30"
                                />
                                <span>
                                    <b>centy /</b> web architects
                                </span>
                            </a>
                        </div>
                        <div class="search">
                            <ul>
                                <li>
                                    <label>Tìm kiếm:</label>
                                </li>
                                <form method="GET">
                                    <li>

                                        <input type="text" name="search">
                                    </li>
                                    <li>
                                        <select name="category">
                                            <option value="10">RAR</option>
                                            <option value="11">Image</option>
                                        </select>
                                    </li>
                                    <li>
                                        <input type="submit" name="ok" value="SEARCH">
                                    </li>
                                </form>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
